import { mapGetters } from 'vuex'
export default {
  computed: mapGetters([
    'userId',
    'account',
    'username',
    'deptFullData',
    'userPture',
    'msgTotal',
    'loginVersion',
    'loginTime',
    'createTime',
    'ipAddr',
  ]),
  mounted() {
    this.setUserInfo()
  },
  methods: {
    setUserInfo() {
      this.$store.dispatch('setUserInfo')
    },
    getMessageInfo() {
      this.$store.dispatch('getMessageInfo')
    },
  },
}
